﻿<%@ Page Title="Registration" Language="C#" MasterPageFile="~/Bundled.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Bundled.Pages.Register.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>Registration</h2>
    <fieldset class="wide50">
        <legend>Registration Details</legend>
        <table>
            <tr>
                <td>First Name:</td>
                <td><asp:TextBox ID="txtFName" runat="server"></asp:TextBox>&nbsp;<span class="required">(required)</span></td>
                <td><asp:RequiredFieldValidator ID="rfvFName" runat="server" ControlToValidate="txtFName" 
                    ErrorMessage="* Please enter your First Name" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>Last Name:</td>
                <td><asp:TextBox ID="txtLName" runat="server"></asp:TextBox>&nbsp;<span class="required">(required)</span></td>
                <td><asp:RequiredFieldValidator ID="rfvLName" runat="server" ControlToValidate="txtLName"
                    ErrorMessage="* Please enter your Last Name" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>E-Mail Address:</td>
                <td><asp:TextBox ID="txtEmail1" runat="server"></asp:TextBox>&nbsp;<span class="required">(required)</span></td>
                <td><asp:RequiredFieldValidator ID="rfvEmail1" runat="server" ControlToValidate="txtEmail1"
                    ErrorMessage="* Please enter your E-Mail Address" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="rxEmail1" runat="server" ControlToValidate="txtEmail1"
                        ErrorMessage="* Please enter a valid E-Mail Address" Display="Dynamic" ValidationGroup="Register" CssClass="validation"
                        ValidationExpression=".*@.*\..*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>Re-Enter E-Mail Address:</td>
                <td><asp:TextBox ID="txtEmail2" runat="server"></asp:TextBox>&nbsp;<span class="required">(required)</span></td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvEmail2" runat="server" ControlToValidate="txtEmail2"
                    ErrorMessage="* Please re-enter your E-Mail Address" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cvEmail2" runat="server" ControlToValidate="txtEmail1" ControlToCompare="txtEmail2"
                        Operator="Equal" Type="String" ErrorMessage="* E-Mails must match" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:CompareValidator>
                </td>
            </tr>
            <tr><td><br /></td></tr>
            <tr>
                <td class="bold">Login Details</td>
            </tr>
            <tr>
                <td>Username</td>
                <td><asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>&nbsp;<span class="required">(required)</span></td>
                <td><asp:RequiredFieldValidator ID="rfUserName" runat="server" ControlToValidate="txtUserName" 
                    ErrorMessage="* Please choose a UserName" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>Password:</td>
                <td><asp:TextBox ID="txtPassword1" runat="server" TextMode="Password"></asp:TextBox>&nbsp;<span class="required">(required)</span></td>
                <td><asp:RequiredFieldValidator ID="rfPassword1" runat="server" ControlToValidate="txtPassword1" 
                    ErrorMessage="* Please enter a Password" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>Re-Enter Password:</td>
                <td><asp:TextBox ID="txtPassword2" runat="server" TextMode="Password"></asp:TextBox>&nbsp;<span class="required">(required)</span></td>
                <td><asp:RequiredFieldValidator ID="rfPassword2" runat="server" ControlToValidate="txtPassword2" 
                    ErrorMessage="* Please re-enter your Password" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cvPassword2" runat="server" ControlToValidate="txtPassword1" ControlToCompare="txtPassword2"
                        Operator="Equal" Type="String" ErrorMessage="* Passwords must match" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:CompareValidator>
                </td>
            </tr>
            <tr><td><br /></td></tr>
            <tr>
                <td class="bold">Password Recovery</td>
            </tr>
            <tr>
                <td><asp:DropDownList ID="ddlSecretQuestion" runat="server"></asp:DropDownList></td>             
            </tr>
            <tr>
                <td><asp:TextBox ID="txtSecretAnswer" runat="server"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="rfvSecretAnswer" runat="server" ControlToValidate="txtSecretAnswer"
                    ErrorMessage="* Please enter an answer" Display="Dynamic" ValidationGroup="Register" CssClass="validation"></asp:RequiredFieldValidator></td>
            </tr>
        </table>
        <table class="wide50">
            <tr>
                <td><asp:Button ID="btnProfileSubmit" runat="server" Text="Submit" UseSubmitBehavior="true" OnClick="btnProfileSubmit_Click" ValidationGroup="Register" CssClass="button" /></td>
                <td><asp:Button ID="btnClearFields" runat="server" Text="Clear Fields" OnClick="btnClearFields_Click" CssClass="button" /></td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
